<template>
  <svg
    class="yindu-icon"
    width="16px"
    height="16px"
    viewBox="0 0 16 16"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
  >
    <defs>
      <polygon id="mobile-path-1" points="0 0 10.9995 0 10.9995 16 0 16"></polygon>
      <polygon id="mobile-path-3" points="0 16 11 16 11 0 0 0"></polygon>
    </defs>
    <g
      id="页面-1"
      stroke="none"
      stroke-width="1"
      fill="none"
      fill-rule="evenodd"
    >
      <g id="切图" transform="translate(-311.000000, -111.000000)">
        <g id="编组-6" transform="translate(311.000000, 111.000000)">
          <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
          <g id="编组" transform="translate(2.000000, 0.000000)">
            <g transform="translate(0.000500, 0.000000)">
              <mask id="mobile-mask-2" fill="white">
                <use xlink:href="#mobile-path-1"></use>
              </mask>
              <g id="Clip-2"></g>
              <path
                d="M1.333,1 C1.142,1 1,1.113 1,1.214 L1,14.786 C1,14.887 1.142,15 1.333,15 L9.666,15 C9.857,15 10,14.887 10,14.786 L10,1.214 C10,1.113 9.857,1 9.666,1 L1.333,1 Z M9.666,16 L1.333,16 C0.598,16 0,15.455 0,14.786 L0,1.214 C0,0.545 0.598,0 1.333,0 L9.666,0 C10.401,0 11,0.545 11,1.214 L11,14.786 C11,15.455 10.401,16 9.666,16 L9.666,16 Z"
                id="Fill-1"
                fill="#C8C8C8"
                mask="url(#mobile-mask-2)"
              ></path>
            </g>
            <mask id="mobile-mask-4" fill="white">
              <use xlink:href="#mobile-path-3"></use>
            </mask>
            <g id="Clip-4"></g>
            <polygon
              id="Fill-3"
              fill="#C8C8C8"
              mask="url(#mobile-mask-4)"
              points="4.666 14.333 6.333 14.333 6.333 13.333 4.666 13.333"
            ></polygon>
            <polygon
              id="Fill-5"
              fill="#C8C8C8"
              mask="url(#mobile-mask-4)"
              points="0.5 12.667 10.5 12.667 10.5 11.667 0.5 11.667"
            ></polygon>
          </g>
        </g>
      </g>
    </g>
  </svg>
</template>

<script setup lang="ts">
type Props = {
  fill?: string;
};

const props = withDefaults(defineProps<Props>(), {
  fill: "#C8C8C8",
});

const fillColor = computed(() => {
  return props.fill;
});
</script>
<style scoped lang="less">
.yindu-icon {
  & path {
    fill: v-bind(fillColor);
  }
}
</style>
